package cn.zjweu.mapper;

import cn.zjweu.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {


    List<Comment> getChildren(@Param("rootId") Long rootId);

    List<Comment> getAllRootComments(@Param("commentType") String commentType, @Param("menuId") Long menuId);
}
